<?php 
session_start();

if(strlen($_SESSION["u_name"])== 0)
{
 header("Location:index.php");
}
include 'Classes/MyClass.php';
$objMyCass = new MyClass();
$userdetails = array();
$userdetails = $objMyCass->FetchUserRecords($_SESSION["user_id"]);
$userConsultingPackage =array();
$userConsultingPackage = $objMyCass->getConsultingPackage($_SESSION["user_id"]);
//print_r($userConsultingPackage);
?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Home</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<script src="js/jquery-1.4.2.js" type="text/javascript" language="javascript"></script>
<script src="js/ajax.js" type="text/javascript" language="javascript"></script>
<script src="js/tab-view.js" type="text/javascript" language="javascript"></script>
<link href="style.css" rel="stylesheet" type="text/css" />
<link href="css/tab-view.css" rel="stylesheet" type="text/css" />
<link href="cssbuttons.css" rel="stylesheet" type="text/css">
<link href="skins/sample/sample.css" rel="stylesheet" type="text/css">

<style type="text/css">
	body {
		margin: 20px;
		padding: 0px;
		font: 16px arial, sans-serif; }

	pre {text-indent: 30px}

	#tabmenu {
		color: #000;
		border-bottom: 2px solid #CDCDCD;
		margin: 12px 0px 0px 0px;
		padding: 0px;
		z-index: 1;
		padding-left: 10px }

	#tabmenu li {
		display: inline;
		overflow: hidden;
		list-style-type: none; }

	#tabmenu a, a.active {
		color: #DEDECF;
		background: #898B5E;
		font: bold 1em "Trebuchet MS", Arial, sans-serif;
		border: 1px solid #CDCDCD;
		padding: 2px 5px 0px 5px;
		margin: 0;
		text-decoration: none; }

	#tabmenu a.active {
		background: #ABAD85;
		border-bottom: 3px solid #ABAD85; }

	#tabmenu a:hover {
		color: #fff;
		background: #ADC09F; }

	#tabmenu a:visited {
		color: #E8E9BE; }

	#tabmenu a.active:hover {
		background: #ABAD85;
		color: #DEDECF; }

	#content {font: 0.9em/1.3em "bitstream vera sans", verdana, sans-serif;
		text-align: justify;
		background: #F6F7F8;
		padding: 20px;
		border: 1px solid #CDCDCD;
		border-top: none;
		z-index: 2;	}

	#content a {
		text-decoration: none;
		color: #E8E9BE; }

	#content a:hover { background: #898B5E; }
	</style>

</head>
<body>


<!-- container -->
<div id="container">
	<div class="center">
		<!-- header -->
		<div class="header">
			<div class="logo"><a href="#"><img src="images/logo.png" alt="" /></a></div>
			<div class="login">
				<div class="studentlogin">
					<!-- <h1>Student Login</h1>-->
					<div class="username">
						<!-- <p class="uname">Username:</p> -->
						<div class=""><!-- <input type="text" class="t_box" value="" /> --></div>
					</div>
					<div class="">
						<!-- <p class="uname">Password:</p> -->
						<div class=""><!-- <input type="password" class="t_box" value="" /> --></div>
					</div> 
					
				</div>
				
				<div class="logo1"><a href="#"><img src="images/logo1.png" alt="" /></a></div>
				<div style="text-align:right" >Welcome ,<?php print $_SESSION["u_name"];?>&nbsp;&nbsp;<a href="Logout.php">Log Out</a></div>
			</div>
			<div class="nav">
				<ul>
					<li><a href="Home.php" class="select" >Home</a></li>
					<li><a href="about-us.php">About Us</a></li>
					<li><a href="GmatPreparation.php">GMAT Preperation</a></li> 
					<li><a href="AdmissionConsulting.php">Admissions Consulting</a></li> 
					<li><a href="http://techbridge.co.in/forum/">MBA Forum</a></li> 
					<li><a href="contact-us.php">Contact Us</a></li>
				</ul>
			</div>
		</div>
		<!-- header -->
		<!-- middle -->

		<div class="middle">
		
			<ul id="tabmenu">
	<li><a href="#" id="1-a" onclick="openDiv('1')">Purchase History</a></li>
	<li><a href="#" id="2-a" onclick="openDiv('2')">Admission Consulting</a></li>
	<li><a href="#" id="3-a" onclick="openDiv('3')">Paid Resources</a></li>
	<li><a href="#" id="4-a" onclick="openDiv('4')">Your Updates</a></li>
	<li><a href="#" onclick="openDiv('5')" id="5-a" >Buy Consulting Package</a></li>

</ul>

<div id="content">

<!-- 1 Starts Here -->
<div id="1" style="display: none;">
<span>Your Purchase History:	</span>
<table>
</table>
</div>
<!-- 1 ENds -->

<!-- 2 Starts Here -->
<div id="2" style="display: none;">
<span>Your Admission Consulting:	</span>
<br />
<form id="frmAdmission" name="frmAdmission" action="saveAdmission.php" method="post" enctype="multipart/form-data" >
<table cellpadding="0" cellspacing="0">
<tr>
<td>
School Name:
</td>
<td>
<input type="text" name="txtSchoolName" id="txtSchoolName" />
</td>
</tr>
<tr>
<td>
Document Name:
</td>
<td>
<input type="text" name="txtDocumentName" id="txtDocumentName" />
</td>
</tr>
<tr>
<td>
Document:
</td>
<td>
<input type="file" name="file" id="file" />
</td>
</tr>
<tr>
<td colspan="2">
<input type="submit" name="btnSubmit" id="btnSubmit" value="Save" />
</td>
</tr>
</table>
</form>
</div>
<!-- 2 ENds -->


<!-- 3 Starts Here -->
<div id="3" style="display: none;">
<span>Paid Resources</span>
<table cellpadding="0" cellspacing="0" width="110%" align="center" border="0" >
		
		<tr>
		<td colspan="3">&nbsp;</td>	
		</tr>
		
		<tr>
		<td style="width: 300px;">
			<span href="" style="color: #375860;"><u>GMAT FLT (Full Length Test)</u></span>
		</td>
		
		<td>&nbsp;</td>
		
		<td>
			<table cellpadding="0" cellspacing="0" width="120px;">
			<tr>
			<td>
				<span href="" style="color: #375860"><u>Test Series One</u></span>
			</td>
			</tr>
			<tr>
			<td>
				<span style="font-size: 10px;color: blue;">Total Price : $45</span>
			</td>
			</tr>
			<tr>
			<td>
				<img src="images/buy-now.jpg" style="cursor:pointer;" onclick="gotoOverview('0.1','GMAT_full_length_test_Test_Series_One')" border="0" />
			</td>
			</tr>
			</table>
		</td>
		
		<td>
			<table cellpadding="0" cellspacing="0" width="120px;">
			<tr>
			<td>
				<span href="" style="color: #375860"><u>Test Series Two</u></span>
			</td>
			</tr>
			<tr>
			<td>
				<span style="font-size: 10px;color: blue;">Total Price : $50</span>
			</td>
			</tr>
			<tr>
			<td>
				<img src="images/buy-now.jpg" style="cursor:pointer;" onclick="gotoOverview('0.1','GMAT_full_length_test_Test_Series_Two')" border="0" />
			</td>
			</tr>
			</table>
		</td>
		
		<td>
			<table cellpadding="0" cellspacing="0" width="120px;">
			<tr>
			<td>
				<span href="" style="color: #375860"><u>Test Series Three</u></span>
			</td>
			</tr>
			<tr>
			<td>
				<span style="font-size: 10px;color: blue;">Total Price : $55</span>
			</td>
			</tr>
			<tr>
			<td>
				<img src="images/buy-now.jpg" style="cursor:pointer;" onclick="gotoOverview('0.1','GMAT_full_length_test_Test_Series_Three')" border="0" />
			</td>
			</tr>
			</table>
		</td>
		</tr>
		
		<tr>
		<td colspan="3">&nbsp;</td>	
		</tr>
			
		<tr>
		<td colspan="9">
			<img src="images/grey_divider.gif" alt="" border="0" width="920px" height="12px" />
		</td>	
		</tr>
		
		<tr>
		<td >
			<span href="" style="color: #375860"><u>GMAT ST (Sectional Test)</u></span>
		</td>
		
		<td>Maths</td>
		
		<td>
			<table cellpadding="0" cellspacing="0" width="120px;">
			<tr>
			<td>
				<span href="" style="color: #375860"><u>Test Series One</u></span>
			</td>
			</tr>
			<tr>
			<td>
				<span style="font-size: 10px;color: blue;">Total Price : $45</span>
			</td>
			</tr>
			<tr>
			<td>
				<img src="images/buy-now.jpg" style="cursor:pointer;" onclick="gotoOverview('0.1','Math_GMAT_Sectional_test_Test_Series_One')" border="0" />
			</td>
			</tr>
			</table>
		</td>
		
		<td>
			<table cellpadding="0" cellspacing="0" width="120px;">
			<tr>
			<td>
				<span href="" style="color: #375860"><u>Test Series Two</u></span>
			</td>
			</tr>
			<tr>
			<td>
				<span style="font-size: 10px;color: blue;">Total Price : $50</span>
			</td>
			</tr>
			<tr>
			<td>
				<img src="images/buy-now.jpg" style="cursor:pointer;" onclick="gotoOverview('0.1','Math_GMAT_Sectional_test_Test_Series_Two')" border="0" />
			</td>
			</tr>
			</table>
		</td>
		
		<td>
			<table cellpadding="0" cellspacing="0" width="120px;">
			<tr>
			<td>
				<span href="" style="color: #375860"><u>Test Series Three</u></span>
			</td>
			</tr>
			<tr>
			<td>
				<span style="font-size: 10px;color: blue;">Total Price : $55</span>
			</td>
			</tr>
			<tr>
			<td>
				<img src="images/buy-now.jpg" style="cursor:pointer;" onclick="gotoOverview('0.1','Math_GMAT_Sectional_test_Test_Series_Three')" border="0" />
			</td>
			</tr>
			</table>
		</td>
		</tr>
		
		
		
		
		<tr>
		<td >&nbsp;
			
		</td>
		
		
		
		<td>Verbal</td>
		
		<td>
			<table cellpadding="0" cellspacing="0" width="120px;">
			<tr>
			<td>
				<span href="" style="color: #375860"><u>Test Series One</u></span>
			</td>
			</tr>
			<tr>
			<td>
				<span style="font-size: 10px;color: blue;">Total Price : $45</span>
			</td>
			</tr>
			<tr>
			<td>
				<img src="images/buy-now.jpg" style="cursor:pointer;" onclick="gotoOverview('0.1','Verbal_GMAT_Sectional_test_Test_Series_One')" border="0" />
			</td>
			</tr>
			</table>
		</td>
		
		<td>
			<table cellpadding="0" cellspacing="0" width="120px;">
			<tr>
			<td>
				<span href="" style="color: #375860"><u>Test Series Two</u></span>
			</td>
			</tr>
			<tr>
			<td>
				<span style="font-size: 10px;color: blue;">Total Price : $50</span>
			</td>
			</tr>
			<tr>
			<td>
				<img src="images/buy-now.jpg" style="cursor:pointer;" onclick="gotoOverview('50','Verbal_GMAT_Sectional_test_Test_Series_Two')" border="0" />
			</td>
			</tr>
			</table>
		</td>
		
		<td>
			<table cellpadding="0" cellspacing="0" width="120px;">
			<tr>
			<td>
				<span href="" style="color: #375860"><u>Test Series Three</u></span>
			</td>
			</tr>
			<tr>
			<td>
				<span style="font-size: 10px;color: blue;">Total Price : $55</span>
			</td>
			</tr>
			<tr>
			<td>
				<img src="images/buy-now.jpg" style="cursor:pointer;" onclick="gotoOverview('55','Verbal_GMAT_Sectional_test_Test_Series_Three')" border="0" />
			</td>
			</tr>
			</table>
		</td>
		</tr>
		
		
		<tr>
		<td colspan="3">&nbsp;</td>	
		</tr>
		
		<tr>
		<td colspan="9">
			<img src="images/grey_divider.gif" alt="" border="0" width="920px" height="12px" />
		</td>	
		</tr>
		
		<tr>
		<td style="width: 300px;">
			<span href="" style="color: #375860;"><u>GMAT Foundation Courses</u></span>
		</td>
		
		<td>&nbsp;</td>
		
		<td>
			<table cellpadding="0" cellspacing="0" width="120px;">
			<tr>
			<td>
				<span href="" style="color: #375860"><u>Maths</u></span>
			</td>
			</tr>
			<tr>
			<td>
				<span style="font-size: 10px;color: blue;">Total Price : $45</span>
			</td>
			</tr>
			<tr>
			<td>
				<img src="images/buy-now.jpg" style="cursor:pointer;" onclick="gotoOverview('45','GMAT_Foundation_Courses_Maths')" border="0" />
			</td>
			</tr>
			</table>
		</td>
		</tr>
		
		<tr>
		<td style="width: 300px;">&nbsp;
			
		</td>
		
		<td>&nbsp;</td>
		
		<td>
			<table cellpadding="0" cellspacing="0" width="120px;">
			<tr>
			<td>
				<span href="" style="color: #375860"><u>Verbal</u></span>
			</td>
			</tr>
			<tr>
			<td>
				<span style="font-size: 10px;color: blue;">Total Price : $45</span>
			</td>
			</tr>
			<tr>
			<td>
				<img src="images/buy-now.jpg" style="cursor:pointer;" onclick="gotoOverview('45','GMAT_Foundation_Courses_Verbal')" border="0" />
			</td>
			</tr>
			</table>
		</td>
		</tr>
		
		<tr>
		<td style="width: 300px;">&nbsp;
			
		</td>
		
		<td>&nbsp;</td>
		
		<td>
			<table cellpadding="0" cellspacing="0" width="120px;">
			<tr>
			<td>
				<span href="" style="color: #375860"><u>AWA</u></span>
			</td>
			</tr>
			<tr>
			<td>
				<span style="font-size: 10px;color: blue;">Total Price : $45</span>
			</td>
			</tr>
			<tr>
			<td>
				<img src="images/buy-now.jpg" style="cursor:pointer;" onclick="gotoOverview('45','GMAT_Foundation_Courses_AWA')" border="0" />
			</td>
			</tr>
			</table>
		</td>
		</tr>
		
		
		
		</table>
</div>
<!-- 3 ENds -->


<!-- 4 starts Here -->
<div id="4" style="display: none;">
<span>Your Recent Updates:	</span>
<table>
<?php 

	$sql = mysql_query("SELECT updates, is_deleted, updated_on FROM tbl_recent_update WHERE user_id=".$_SESSION["user_id"]);
	while($data = mysql_fetch_array($sql))
	{
		if($data['is_deleted']=="n")
		{
		?>
		<tr>
			<td> Dated: <?php echo $data['updated_on']; ?>: </td>
			<td> <?php echo $data['updates']; ?></td>
		</tr>
		<tr>
			<td colspan="2" style="height: 10px;"></td>
		</tr>
		<?php 
		}
	}
?>
</table>	
</div>
<!-- 4 Ends -->
	
<div id="5" style="display: none;">
	<span >Admission Consulting Review Buy Options:	</span>
	<table cellpadding="0" cellspacing="0" width="100%" align="center" border="0" >
		
		<tr>
		<td colspan="3">&nbsp;</td>	
		</tr>
		
		<tr>
		<td>
		
			<table cellpadding="0" cellspacing="0" width="250px;">
			<tr>
			<td>
				<span href="" style="color: #375860"><u>5 Package Series</u></span>
			</td>
			</tr>
			<tr>
			<td>
				<span style="font-size: 10px;color: blue;">You will be able to submit 5 Business school applications by availing this. </span>
				<br />
				<span style="font-size: 10px;color: blue;">Total Price : $30</span>
			</td>
			</tr>
			<tr>
			<td>
				<?php 
				if(in_array("5",$userConsultingPackage))
				{
				?>
				<img src="images/ok.png" border="0" />
				<?php 
				}
				else
				{
				?>
				<img src="images/buy-now.jpg" style="cursor:pointer;" onclick="gotoOverview('0.1','5_package_consulting_package')" border="0" />
				<?php 
				}
				?>
			</td>
			</tr>
			</table>
			
		</td>
		<td>&nbsp;</td>
		
		<td>
			<table cellpadding="0" cellspacing="0" width="250px;">
			<tr>
			<td>
				<span href="" style="color: #375860"><u>10 Package Series</u></span>
			</td>
			</tr>
			<tr>
			<td>
				<span style="font-size: 10px;color: blue;">You will be able to submit 10 Business school applications by availing this. </span>
				<br />
				<span style="font-size: 10px;color: blue;">Total Price : $45</span>
			</td>
			</tr>
			<tr>
			<td>
				<?php 
				if(in_array("10",$userConsultingPackage))
				{
				?>
				<img src="images/ok.png" border="0" />
				<?php 
				}
				else
				{
				?>
				<img src="images/buy-now.jpg" style="cursor:pointer;" onclick="gotoOverview('0.1','10_package_consulting_package')" border="0" />
				<?php 
				}
				?>
			</td>
			</tr>
			</table>
		</td>
		</tr>
		
		<tr>
		<td colspan="3">&nbsp;</td>	
		</tr>
			
		<tr>
		<td>
			<table cellpadding="0" cellspacing="0" width="250px;">
			<tr>
			<td>
				<span href="" style="color: #375860"><u>15 Package Series</u></span>
			</td>
			</tr>
			<tr>
			<td>
				<span style="font-size: 10px;color: blue;">You will be able to submit 15 Business school applications by availing this. </span>
				<br />
				<span style="font-size: 10px;color: blue;">Total Price : $60</span>
			</td>
			</tr>
			<tr>
			<td>
				<?php 
				if(in_array("15",$userConsultingPackage))
				{
				?>
				<img src="images/ok.png" border="0" />
				<?php 
				}
				else
				{
				?>
				<img src="images/buy-now.jpg" style="cursor:pointer;" onclick="gotoOverview('0.1','15_package_consulting_package')" border="0" />
				<?php 
				}
				?>
			</td>
			</tr>
			</table>
		</td>
		
		<td>&nbsp;</td>
		
		
		
		</table>
		
</div>
</div>
		
		<div style="height: 15px;">&nbsp;</div>
		
		<!-- services -->
					<div class="services">
						<!-- green -->
							<div class="green">
								<p class="greenimg1"><a href="#"><img src="images/img6.jpg" alt=""/></a></p>
								<h2><a href="GmatPreparation.php">GMAT Prep</a></h2>
								<div class="greenlist">
									<ul>
										<li><a href="#">Foundation Course</a></li>
										<li><a href="#">Test Series</a></li>
										<li><a href="ProfileEvaluation.php">Profile Evaluation</a></li>
									</ul>
								</div>
							</div>
						<!-- /green -->
						<!-- skyblue -->
							<div class="skyblue">
								<p class="greenimg1"><a href="#"><img src="images/img7.jpg" alt=""/></a></p>
								<h2><a href="AdmissionConsulting.php">Admission Consulting</a></h2>
								<div class="bluelist">
									<ul>
										<li><a href="#">Application review</a></li>
										<li><a href="#">Choosing the right school</a></li>
										<li><a href="#">Interview Preperation</a></li>
									</ul>
								</div>
							</div>
						<!-- /skyblue -->
						<!-- yellow -->
							<div class="yellow">
								<p class="greenimg1"><a href="#"><img src="images/img8.jpg" alt=""/></a></p>
								<h2><a href="MbaServices.php">MBA Services</a></h2>
								<div class="yellowlist">
									<ul>
										<li><a href="#">B S chool Ranking</a></li>
										<li><a href="#">Admission Deadlines</a></li>
										<li><a href="#">Latest News</a></li>
										<li><a href="#">MBA Blog</a></li>
									</ul>
								</div>
							</div>
						<!-- /yellow -->
						<!-- white -->
							<div class="white">
								<h2><a href="FreeResources.php">Free Resources</a></h2>
								<div class="whitelist">
									<ul>
										<li><a href="#">GMAT Games</a></li>
										<li><a href="#">GMAT Test</a></li>
										<li><a href="#">Contests</a></li>
										<li><a href="#">Guides</a></li>
									</ul>
								</div>
								<p class="globe"><a href="#"><img src="images/img5.png" alt=""/></a></p>
							</div>
						<!-- /white -->
					</div>
				<!-- /services -->
		
		
		<div class="bar"><img src="images/ftopbg.png" alt=""/></div>
			</div>
		<!-- /middle -->
		<!-- footer -->
			<div class="footer" style="height: 15px;">
				<ul>
					<li><a href="Home.php">Home</a></li>
					<li>|</li>
					<li><a href="about-us.php">About Us</a></li>
					<li>|</li>
					<li><a href="GmatPreparation.php">GMAT Preperation</a></li>
					<li>|</li>
					<li><a href="AdmissionConsulting.php">Admissions Consulting</a></li>
					<li>|</li>
					<li><a href="http://topmbaconsultant.com/forum/">MBA Blog</a></li>
					<li>|</li>
					<li><a href="contact-us.php">Contact Us</a></li>
				</ul>
			</div>
		<!-- /footer -->
	</div>
</div>
<!-- / container -->

<script>
	function openDiv(id)
	{
		
		if(id=="1")
		{
			document.getElementById("1").style.display="block";
			document.getElementById("2").style.display="none";
			document.getElementById("3").style.display="none";
			document.getElementById("4").style.display="none";
			document.getElementById("5").style.display="none";
			document.getElementById("1-a").style.className="active";
		}
		else if (id=="2")
		{
			document.getElementById("1").style.display="none";
			document.getElementById("2").style.display="block";
			document.getElementById("3").style.display="none";
			document.getElementById("4").style.display="none";
			document.getElementById("5").style.display="none";
			document.getElementById("2-a").style.className="active";
		}
		else if (id=="3")
		{
			document.getElementById("1").style.display="none";
			document.getElementById("2").style.display="none";
			document.getElementById("3").style.display="block";
			document.getElementById("4").style.display="none";
			document.getElementById("5").style.display="none";
			document.getElementById("3-a").style.className="active";
		}
		else if (id=="4")
		{
			document.getElementById("1").style.display="none";
			document.getElementById("2").style.display="none";
			document.getElementById("3").style.display="none";
			document.getElementById("4").style.display="block";
			document.getElementById("5").style.display="none";
			document.getElementById("4-a").style.className="active";
		}
		else if (id=="5")
		{
			
			document.getElementById("1").style.display="none";
			document.getElementById("2").style.display="none";
			document.getElementById("3").style.display="none";
			document.getElementById("4").style.display="none";
			document.getElementById("5").style.display="block";
			document.getElementById("5-a").style.className="active";
			//alert(document.getElementById("5-a").style.className);
		}
		
		//document.getElementById(id).style.display="block";
		//document.getElementById(id+"-a").style.className="active";
	}
	function gotoOverview(id,item)
	{
		window.open('overview.php?amount='+id+'&item='+item,'_self');
	}
	openDiv('4');
</script>

 </body>
</html>